package com.leoman.permissions.admin.entity;

import com.leoman.entity.BaseEntity;
import com.leoman.permissions.role.entity.Role;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;

/**
 * 管理员
 * Created by Daisy on 2016/12/27.
 */
@Table(name = "t_admin")
@Entity
public class Admin extends BaseEntity {

    @Column(name = "name")
    private String name;

    @Column(name = "mobile")
    private String mobile;

    @Column(name = "password")
    private String password;

    @Column(name = "role_id")
    private Long roleId;//角色：1-全部权限，2-部分权限（客户信息），3-查看编辑权限（客户需求信息）

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
}
